function showTab(theNO,totalNO) {
	//初始化
	if(totalNO>0)
	{
		for(i=1;i<=totalNO;i++)
		{
			if("text_12_borde2r1"!=document.getElementById("tdTitle"+i).className)
			{
				if(null!=document.getElementById("imgL"+i))
				{
					document.getElementById("imgL"+i).src = tabLeftOff;
				}
				if(null!=document.getElementById("imgR"+i))
				{
					document.getElementById("imgR"+i).src = tabRightOff;
				}
				if(null!=document.getElementById("tdTitle"+i))
				{
					document.getElementById("tdTitle"+i).className = "text_12_border1";
				}
				if(null!=document.getElementById("table"+i))
				{
					document.getElementById("table"+i).style.display = "none";
				}
			}
		}
	}
	
	//选择TAB页
	if(document.getElementById("imgL"+theNO))
	{
		document.getElementById("imgL"+theNO).src = tabLeftOn;
	}
	if(document.getElementById("imgR"+theNO))
	{
		document.getElementById("imgR"+theNO).src = tabRightOn;
	}
	if(document.getElementById("tdTitle"+theNO))
	{
		document.getElementById("tdTitle"+theNO).className = "text_12_border";
	}
	if(document.getElementById("table"+theNO))
	{
		document.getElementById("table"+theNO).style.display = "block";
	}
}

function $(elemid)
{
	return document.getElementById(elemid);
}